//
//  BHCircleDetailInfoCell.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/7/12.
//

import UIKit

class BHCircleDetailInfoCell: UITableViewCell {

    @IBOutlet weak var title_label: UILabel!
    
    @IBOutlet weak var content_label: UILabel!
    
    @IBOutlet weak var time_label: UILabel!
    
    @IBOutlet weak var like_btn: UIButton!
    
    var model: BHCircleDetailInfoModel! {
        didSet {
            self.title_label.text = model.title
            self.content_label.attributedText = model.showContentText
            self.time_label.text = model.createTime
            self.like_btn.setTitle("\(model.supportNumber) ", for: .normal)
            self.like_btn.setTitle("\(model.supportNumber) ", for: .selected)
            self.like_btn.isSelected = model.likeFlag == 1
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
